<%@
	include file="/WEB-INF/includes/taglibs.jsp" %><%@
	page import="com.google.appengine.api.users.*"
%><%
	// If use is logged in, redirect to /demo
	UserService userService = UserServiceFactory.getUserService();
	if (userService.isUserLoggedIn() && userService.isUserAdmin()) {
		response.sendRedirect("/demo");
		return;
	}
%><!DOCTYPE html>
<html>
<head>
<title>MapReduce Made Easy</title>
<link type="text/css" rel="stylesheet" href="/styles/default.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<style type="text/css">
.main {
  max-width: 800px;
  padding: 1em;
  margin: 0 auto;
}
pre {
  border: 1px solid #bbb;
  background-color: #fafafa;
  padding: 6px 10px;
  font-family: monospace;
}
code {
  color: #007000;
  font-family: monospace;
  font-size: 1.25em;
}
</style>
</head>
<body>
<div class="main">
	<h1>MapReduce in Three Simple Steps</h1>
	<p>You'll need to <a href="<%= com.google.appengine.api.users.UserServiceFactory.getUserService().createLoginURL("/demo") %>">login</a> as an administrator to use this demo app.</p>
	<hr />
	<h3>About MapReduce Made Easy</h3>
	<p><a href="https://developers.google.com/appengine/docs/python/dataprocessing/helloworld">MapReduce Made Easy (python)</a> is a more accessible version of the original mapreduce test application found in the App Engine MapReduce source code, designed by <a href="https://plus.google.com/+MikeAizatsky">Mike Aizatsky</a>. Retouching work done by <a href="https://plus.google.com/100232598840877422187">Chris Bunch</a> - learn more about <a href="http://mapreduce.appspot.com">App Engine MapReduce</a> and make your own apps!</p>
	<p><a href="https://code.google.com/p/appengine-mapreduce-java-demo">This version is written in Java!</a></p>
	<div style="margin: 1em; text-align:center"><img src="https://developers.google.com/appengine/images/appengine-silver-120x30.gif" alt="Powered by Google App Engine" /></div>
</div>
</body>
</html>
